﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.VRDD.InputDto._20220620
{
    /// <summary>
    /// 判断商品是否已购买
    /// </summary>
    public class InputCheckPurchase
    {
        /// <summary>
        /// 商品id
        /// </summary>
        [Required(ErrorMessage = "fileID：商品id必传项！")]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请传入正确商品id")]//大于0正则表达式
        public int fileID { get; set; }
        /// <summary>
        /// 用户编码
        /// </summary>
        [Required(ErrorMessage = "userid：用户编码必传项！")]
        public string userid { get; set; }
    }
}
